import request from "@/utils/request";

/**
 * @description 列表
 * @param params
 * @returns {*}
 */
export function list(params){
    return request({
        url:'/customerService/list',
        method:'GET',
        params
    })
}
export function vipList(params){
    return request({
        url:'/customerService/businessList',
        method:'GET',
        params
    })
}
export function customerList(params){
    return request({
        url:'/customerService/getList',
        method:'GET',
        params
    })
}



/**
 * @description 新增/编辑
 * @param data
 * @returns {*}
 */
export function save(data){
    return request({
        url:'/customerService/addAndUpdate',
        method:'POST',
        data
    })
}

/**
 * @description 删除
 * @param id
 * @returns {*}
 */
export function deleteRow(id){
    return request({
        url:'/customerService/delete',
        method:'GET',
        params:{id}
    })
}

export function moveFromAtoB(aid,bid,businessId){
    return request({
        url:'/customerService/moveFromAtoB',
        method:'GET',
        params:{aid,bid,businessId}
    })
}

/**
 * @description 详情
 * @param id
 * @returns {*}
 */
export function detail(id){
    return request({
        url:'/customerService/detail',
        method:'GET',
        params:{id}
    })
}

/**
 * @description 更新状态
 * @param id
 * @param status
 * @returns {*}
 */
export function updateStatus(id,status){
    return request({
        url:'/customerService/updateStatus',
        method:'GET',
        params:{id,status}
    })
}

export function optionsList(){
    return request({
        url:'/common/getAreaList',
        method:'GET'
    })
}
export function optionsList1(){
    return request({
        url:'/common/getCityList',
        method:'GET'
    })
}


